/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn;

import cn.webrx.config.SpringConfig;
import lombok.Data;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

import javax.sql.DataSource;

/**
 * <p>Project: ssm - Demo
 * <p>Powered by webrx On 2021-11-24 18:12:20
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@SpringJUnitConfig(SpringConfig.class)
public class Demo {
    @Value("${db.url}")
    private String url;

    @Autowired
    private DataSource ds;

    @Test
    public void t1(){
        System.out.println(url);
        System.out.println(ds);
    }
}
